package com.okilo.online.app.apt

import androidx.recyclerview.widget.RecyclerView
import com.okilo.online.app.R
import com.okilo.online.app.tools.apt.OkiloRecyclerViewAdapter
import com.okilo.online.app.tools.apt.OkiloViewHolderHelper
import org.json.JSONObject

/**
 * OkiloLoan
 * @Author wwdeng
 * @CreateTime: 2024/11/25 11:51
 * @Annotation：贷款详情 - 账户列表
 */
class OkiloStatusDetailsWalletApt(recyclerView: RecyclerView?) : OkiloRecyclerViewAdapter<JSONObject>(recyclerView, R.layout.okilo_fmt_status_details_wallet_item) {
    override fun fillData(helper: OkiloViewHolderHelper, position: Int, model: JSONObject) {
        var showName = model.optString("name","")
        if (showName.isEmpty() || showName == "null"){
            showName = "test"
        }
        helper.setText(R.id.okiloWalletTypeTitle,showName)
        helper.setText(R.id.okiloWalletMobile,model.optString("account"))
    }
}